package com.vdong.common.oauth.common.enums;

/**
 * @program: kpay-basics-srv
 * @description: 公共常量
 * @author: Mr.Zhang
 * @create: 2018-07-03 16:50
 **/
public class CommonConstant {

    /**
     * 删除状态
     */
    public enum DelState {
        //已删除
        YES(true, 1, "y", "已删除"), NO(false, 0, "n", "未删除");
        private boolean isDel;
        private int code;
        private String type;
        private String desc;

        DelState(boolean isDel, int code, String type, String desc) {
            this.isDel = isDel;
            this.code = code;
            this.type = type;
            this.desc = desc;
        }

        public boolean isDel() {
            return isDel;
        }

        public int getCode() {
            return code;
        }

        public String getType() {
            return type;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 启用状态
     */
    public enum EnableState {
        //启用
        YES(true, 1, "y", "启用"), NO(false, 0, "n", "未启用");
        private boolean isDel;
        private int code;
        private String type;
        private String desc;

        EnableState(boolean isDel, int code, String type, String desc) {
            this.isDel = isDel;
            this.code = code;
            this.type = type;
            this.desc = desc;
        }

        public boolean isDel() {
            return isDel;
        }

        public int getCode() {
            return code;
        }

        public String getType() {
            return type;
        }

        public String getDesc() {
            return desc;
        }
    }
}
